home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / msswitch.arc / MSSWITCH.DOC
Encoding:
Text File  |  1980-01-01  |  4.3 KB  |  101 lines

  1. Subject: Undocumented Switches in 'cl.exe' for MS-C Ver 4.00
  2. Listing of options in 'cl' of MS-C Ver. 4.00,  documented and undocumented.
  3.  
  4.         Switch          Documented              Function
  5.         -c              yes
  6.         -d              no                      Display passes as they happen.
  7.         -dos            Xenix
  8.         -i              no
  9.         -imp            no
  10.         -n              no
  11.         -s              no
  12.         -k              no                      Keep temp files (quiet).
  13.         -link           yes
  14.         -l*             no                      False friend, see below.
  15.         -m#             no                      Make .map file.
  16.         -nl#            no
  17.         -nologo         no                      Don't print logo on startup.
  18.         -pack           yes
  19.         -pathgen        no
  20.         -o#             no                      Name the output (exe) file.
  21.         -p              no                      Gives warning about no -Gp.
  22.         -pa#            no
  23.         -pl#            no                      Supply alternate linker.
  24.         -p0#            no                      Supply alternate pass 0 cmd.
  25.         -p1#            no                      Supply alternate pass 1 cmd.
  26.         -p2#            no                      Supply alternate pass 2 cmd.
  27.         -p3#            no                      Supply alternate pass 3 cmd.
  28.         -pL#            no
  29.         -u              yes
  30.         -v#             no
  31.         -w              yes
  32.         -z              no                      Print passes (donot compile).
  33.  
  34.         -A*             yes
  35.         -Ba#            no
  36.         -Bd             no                      Print passes as they happen.
  37.         -Bk             no                      Keep temp files (verbose).
  38.         -Bl#            no                      Supply alternate linker.
  39.         -Bz             no                      Print passes (donot compile).
  40.         -B0#            no                      Supply alternate pass 0 cmd.
  41.         -B1#            no                      Supply alternate pass 1 cmd.
  42.         -B2#            no                      Supply alternate pass 2 cmd.
  43.         -B3#            no                      Supply alternate pass 3 cmd.
  44.         -BL#            no
  45.         -C              yes
  46.         -CSOFF          no
  47.         -D#             yes
  48.         -E              yes
  49.         -EP             yes
  50.         -FP*            yes
  51.         -Fa(*)          yes
  52.         -Fe*            yes
  53.         -Fc(*)          yes
  54.         -Fl(*)          yes
  55.         -Fs(*)          yes
  56.         -Fo*            yes
  57.         -Fm(*)          yes
  58.         -Gt(*)          yes
  59.         -G*             yes
  60.         -HELP           yes
  61.         -H#             yes
  62.         -I#             yes
  63.         -K              no                      Keep temp files (see -k).
  64.         -J              yes
  65.         -L              no                      Make .cod file only.
  66.         -M#             Xenix                   See pg 298 MS-C Users Guide.
  67.         -ND#            yes
  68.         -NM#            yes
  69.         -NT#            yes
  70.         -O(*)           yes
  71.         -P              yes
  72.         -PLM            no                      _main & exit unresolved.
  73.         -PLMF           no                      no default lib search.
  74.         -PLMN           no                      -PLMF + something else?
  75.         -S              no                      Make .asm file only.
  76.         -U#             yes
  77.         -V#             yes
  78.         -W#             yes
  79.         -X              yes
  80.         -Z*             yes
  81.  
  82. *, # -- symbols used in the cl.exe string formats. Usually indicates
  83. something further needs to be specified.
  84.  
  85. Favorite Undocumented Option: -nologo (makes my error.log files much
  86. smaller).
  87.  
  88. NB: -l does not act like -l in 'ld' on UNIX systems. 'Cl' just seems
  89. to chop off the -l and treat the rest like an object file to be linked.
  90.  
  91. Note undocumented 'cc/ld' compatible options, -o, -S, -B?, -O.
  92.  
  93. I would suspect that -Ba#, -pa# would allow an alternate assembler,
  94. but 'cl' doesn't seem to be able to call 'masm'.
  95.  
  96. Regards,
  97. -------
  98. Scott Presnell                                          Organic Chemistry
  99. Swiss Federal Institute of Technology  (ETH-Zentrum)
  100. CH-8092 Zurich, Switzerland.
  101.